package com.xspace.android.imcommon.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

import com.xspace.android.imcommon.entity.ChatMsgSnap;

public class ChatSnapAidl implements Parcelable {
	public ChatMsgSnap info;

	public ChatSnapAidl(ChatMsgSnap info) {
		super();
		this.info = info;

	}

	public ChatSnapAidl(Parcel in) {
		readFromParcel(in);

	}

	protected void readFromParcel(Parcel in) {
		info = (ChatMsgSnap) in.readSerializable();
	}

	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(info);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Creator<ChatSnapAidl> CREATOR = new Creator<ChatSnapAidl>() {
		public ChatSnapAidl createFromParcel(Parcel in) {
			return new ChatSnapAidl(in);
		}

		public ChatSnapAidl[] newArray(int size) {
			return new ChatSnapAidl[size];
		}
	};
}
